/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 晓星航
 * Date: 2023-10-31
 * Time: 10:07
 */
public class MonkeyPeach {
    public static void main(String[] args) {
        int remaining = 2;  // 最后剩余的桃子数量
        for (int i = 9; i >= 1; i--) {  // 第10天前一天开始倒推
            remaining = (remaining + 1) * 2;
        }
        System.out.println("第一天摘下的桃子数量为：" + remaining);
    }
}
